const path = require('node:path')
const { merge } = require('webpack-merge')

/**
 * @type {import('webpack-dev-server').Configuration}
 */
const devServer = {
  port: 9527,
  compress: false,
  hot: true,
  historyApiFallback: true,
  static:{
    directory:path.resolve('')
  }
}

/**
 * @type {import('webpack').Configuration}
 */
const devConfig = {
  devtool:'eval-cheap-module-source-map',
  devServer,
  mode:'development'
}
